package ooday05;

public enum Season {
    //表示season的四个常量对象
    //public static final Season
    SPRING("春天", "暖和"),
    SUMMER("夏天", "炎热"),
    AUTUMN("秋天", "凉爽"),
    WINTER("冬天", "寒冷");

    private String seasonName;
    private String seasonDesc;

    Season(String seasonName, String seasonDesc) {
        this.seasonName = seasonName;
        this.seasonDesc = seasonDesc;
    }

    public String getSeasonName() {//私有变量难以调用，所以用get，set方法
        return seasonName;
    }

    public String getSeasonDesc() {//get语句只读
        return seasonDesc;
    }

    public void setSeasonName(String seasonName) {//set调用
        this.seasonName = seasonName;
    }

    public void setSeasonDesc(String seasonDesc) {
        this.seasonDesc = seasonDesc;
    }
}
